package com.zlt.entity;

import com.zlt.annotation.Column;
import com.zlt.annotation.Id;
import com.zlt.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
@Table("user")
public class User {

    @Id
    private String uid;

    @Column
    private String username;

    @Column
    private String password;

    @Column
    private String nickname;

    @Column("reg_time")
    private String regTime;

    @Column("log_time")
    private String logTime;

    @Column
    private Integer sex;

    @Column
    private String salt;

    @Column
    private String email;

    @Column
    private String birthday;

    @Column
    private Integer state;

    @Column
    private String photo;

    private Role role;

}
